// 应用启动类
package com.heima;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@MapperScan("com.heima.mapper")  // 添加MyBatis扫描注解
@EnableCaching  // 启用缓存
@EnableAsync    // 启用异步
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}